package ru.eas.sort;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author aesipov
 */
public class CountSort {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < array.length; i++) {
            array[i] = scanner.nextInt();
        }
        sort(array);
        System.out.println(Arrays.toString(array).replace("[", "").replace("]", "").replace(",", ""));
    }

    static void sort(int[] array) {
        int[] tmpArray = new int[10001];
        for (int i = 0; i < array.length; i++) {
            tmpArray[array[i]] = tmpArray[array[i]] + 1;
        }
        int k = 0;
        for (int i = 0; i < tmpArray.length; i++) {
            for (int j = 0; j < tmpArray[i]; j++) {
                array[k] = i;
                k++;
            }
        }
    }
}
